
package util;

import gui.CadastroTabelaGui;

import javax.swing.ImageIcon;

public class Util
{

   public static ImageIcon createImageIcon(String path)
   {
      java.net.URL imgURL = CadastroTabelaGui.class.getResource(path);

      if (imgURL != null)
      {
         return new ImageIcon(imgURL);
      }
      else
      {
         return new ImageIcon(CadastroTabelaGui.class.getResource("images/tag.png"));
      }
   }

}
